<!DOCTYPE HTML>
<html ng-app="chinaums.angular.app" ng-controller="loginController as vm">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <link rel="stylesheet" href="webjars/bootstrap/3.3.7-1/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="webjars/bootstrap/3.3.7-1/css/bootstrap-theme.min.css"/>
    <script type="application/javascript" src="webjars/angularjs/1.6.0/angular.min.js"></script>
    <script type="application/javascript" src="webjars/angularjs/1.6.0/angular-animate.min.js"></script>
    <script type="application/javascript" src="webjars/angularjs/1.6.0/angular-route.min.js"></script>
    <script type="application/javascript" src="webjars/angular-ui-bootstrap/2.2.0/ui-bootstrap-tpls.min.js"></script>
    <script type="application/javascript" src="webjars/cryptojs/3.1.2/rollups/sha256.js"></script>
    <script type="application/javascript" src="global.js"></script>
    <link rel="stylesheet" type="text/css" href="login.css"/>
    <script type="application/javascript" src="login.js"></script>
    <title>登录：{{appTitle}}</title>
</head>
<body>

<div id="center" class="row">
    <span id="image"></span>
    <form name="form" ng-submit="vm.processForm(vm.form)" novalidate="novalidate">
        <h1 class="page-header">
            <span id="app-name">{{appTitle}}</span>
        </h1>
        <div class="form-group">
            <label for="login-name" class="control-label">用户名</label>
            <input type="text" class="form-control" id="login-name" placeholder="请输入您的帐号" ng-model="vm.form.loginName" ng-required="true">
        </div>
        <div class="form-group">
            <label for="password" class="control-label">密码</label>
            <input type="password" class="form-control" id="password" placeholder="请输入您的密码" ng-model="vm.form.password" ng-required="true">
        </div>
        <div class="form-group text-danger">
            {{vm.errorMessage}}
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-primary"><i class="glyphicon glyphicon-ok"></i> 登录</button>
        </div>
    </form>
</div>

<footer class="text-center">©2017 银联商务厦门分公司</footer>
</body>
</html>
